<div class="categories">
   <div class="bg-transparent"></div>
   <div class="main-categories">
      <div class="cate-title">
         <em class="left-gym"></em>
         <em class="right-gym"></em>
         <span>Danh mục sản phẩm</span>
      </div>
      <ul class="menu-c1">
      <?foreach($arr_cate as $key=>$value){
            if($value['cat_parent_id'] == 0){
               $link = rewriteCate($value['cat_name'],$key);?> 
               <li class="relative">
                  <i></i>
                  <a href="<?=$link?>"><?=$value['cat_name']?></a>
                  <ul class="absolute menu-c2">
                  <?foreach($arr_cate as $keys=>$values){
                     if($values['cat_parent_id'] == $value['cat_id']){
                        $links = rewriteCate($values['cat_name'],$keys);?>
                        <li>
                           <i></i>
                           <a href="<?=$links?>"><?=$values['cat_name']?></a>
                        </li>
                     <?}?>
                     
                  <?}?>
                  </ul>
               </li> 
            <?}?>
      <?}?>
      </ul>
   </div>
</div>
<!--end div categories-->
<div class="like-box">
   <div id="fb-root"></div>
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/vi_VN/all.js#xfbml=1&appId=1415154368698292";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
   <div class="fb-like-box" data-href="https://www.facebook.com/gocnoithat" data-width="240" data-show-faces="true" data-header="false" data-stream="false" data-show-border="true"></div>
</div>
<div class="pro-hightlight relative">
   <div class="bg-transparent"></div>
   <div class="cate-title">
      <em class="left-gym"></em>
      <em class="right-gym"></em>
      <span>Sản phẩm bán chạy</span>
   </div>
   <div class="main-pro-hightlight relative">
      <?$arr_product      = getProduct('',3,'pro_num_sold');?>
      <ul>
         <?foreach($arr_product as $key=>$value){?>
            <?$link = rewriteDetailProduct($value['pro_name'],$value['pro_id']);?>
            <li class="items-pro">
               <a href="<?=$link?>">
                  <?PrintImageThumbPro($value['pro_pic'],PATH_IMG_THUMB,'',$value['pro_name'])?>
                  <p><?=$value['pro_name']?></p>
               </a>
            </li>
         <?}?>
      </ul>
   </div>
</div>
<!--end div pro-hightlight-->